package cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.ContactInfoView;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class ContactInfoDB {
    private int contactId;
    private String address;
    private long fixedTel;
    private int userId;
    private long QQNum;
    private int locationId;

    public ContactInfoDB(ContactInfoView contactInfoView) {
        this.address = contactInfoView.getAddress();
        this.fixedTel = contactInfoView.getFixedTel();
        this.userId = contactInfoView.getUserId();
        this.QQNum = contactInfoView.getQQNum();
    }
}
